<!-- 公共 Header -->

        <div class="navbar navbar-default navbar-static-top">
            <div class="headerLine">
                <div class="commonWL">
                    <div class="logo fl"><a href=" {{ route('root') }} "><img src=" {{ asset('img/logo.png') }} " style="height: 60px;margin: 8px" alt="编程达人社区"></a></div>
                    <ul class="nav fl">
                        <li class="{{ active_class(if_route('root')) }}" ><a href=" {{ route('root') }} ">首页</a></li>
                        <li class="{{ active_class(if_uri_pattern('*talents*')) }}" ><a href=" {{ route('talents') }} ">问答</a></li>
                        <li class="{{ active_class(if_uri_pattern('*lessons*')) }}" ><a href=" {{ route('lessons') }} ">课程</a></li>
                        <li class="{{ active_class(if_uri_pattern('*courses*')) }}" ><a href=" {{ route('courses') }} ">线上班</a></li>
                        <li class="{{ active_class(if_uri_pattern('topics.index')) }}" ><a href=" {{ route('root') }} ">悬赏</a></li>
                        <li class="{{ active_class(if_uri_pattern('topics.index')) }}" ><a href=" {{ route('root') }} ">接单</a></li>
                        <li class="{{ active_class(if_uri_pattern('*forum*'))}}" ><a href=" {{ route('topics.index') }} ">广场</a></li>
                    </ul>
                    <div class="searchBox fl">
                        <form role="form1">
                            <div class="form-group">
                                <input type="text" class="form-control" id="searchTxt" placeholder="请输入您想搜索的内容">
                            </div>
                            <button type="submit" class="searchBtn"></button>
                        </form>
                    </div>
                    <ul class="shareDown fr" style="margin-right: 20px">
                        <!-- Authentication Links -->
                        @guest
                            <li class="share">
                                <a href=" {{ route('login') }} "><span class="glyphicon glyphicon-user"></span>   登录</a>
                            </li>
                            <li  class="share">
                                <a href=" {{ route('register') }} ">注册</a>
                            </li>
                        @else
                            <li class="pull-left">
                                <a href="{{ route('notifications.index') }}" style="margin-top:0px;margin-right:28px;z-index: 999" class="notifications-badge " >
                                <span class="badge badge-{{ Auth::user()->newprompt > 0 ? 'hint' : 'fade' }} " title="消息提醒">
                                    {{ Auth::user()->newprompt }}
                                </span>
                                </a>
                            </li>


                            <li class="dropdown" style="width: 180px;">


                                <a href="{{ route('users.show', Auth::id()) }}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <span class="user-avatar pull-left" style="margin-top:17px;">
                                <img src="{{ Auth::user()->avatar }}" class="img-responsive img-circle" style="width: 45px;height: 43px">
                            </span>
                                    {{ Auth::user()->name }} <span class="caret"></span>
                                </a>


                                <ul class="dropdown-menu" role="menu" style="min-width:130px">
                                    <li>
                                        <a href="{{ route('users.show', Auth::id()) }}">
                                            <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                            个人主页
                                        </a>
                                    </li>
                                    <li>
                                        <a href="{{ route('users.show', Auth::id()) }}">

                                            <span class="glyphicon glyphicon-education" aria-hidden="true"></span>
                                            我的课程
                                        </a>
                                    </li>
                                    <li>
                                        <a href="{{ route('users.show', Auth::id()) }}">

                                            <span class="glyphicon glyphicon-heart" aria-hidden="true"></span>
                                            我的收藏
                                        </a>
                                    </li>

                                    <li role="separator" class="divider" style=" margin-left:0px; margin: 0px 0;"></li>
                                    <li>
                                        <a href="{{ route('users.show', Auth::id()) }}">

                                            <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
                                            我的基友
                                        </a>
                                    </li>
                                    <li>
                                        <a href="{{ route('users.show', Auth::id()) }}">

                                            <span class="glyphicon glyphicon-jpy" aria-hidden="true"></span>
                                           我的订单
                                        </a>
                                    </li>


                                    <li role="separator" class="divider" style=" margin-left:0px;margin: 0px 0"></li>
                                    @can('manage_contents')
                                        <li>
                                            <a href="{{ url(config('administrator.uri')) }}">
                                                <span class="glyphicon glyphicon-dashboard" aria-hidden="true"></span>
                                                管理后台
                                            </a>
                                        </li>
                                    @endcan
                                    <li>
                                        <a href="{{ route('users.edit', Auth::id()) }}">
                                            <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>

                                            资料设置
                                        </a>
                                    </li>

                                    <li>
                                        <a href="{{ route('logout') }}"
                                           onclick="event.preventDefault();
                                             document.getElementById('logout-form').submit();">
                                            <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
                                            退出登录
                                        </a>

                                        <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form>
                                    </li>
                                </ul>
                            </li>
                            {{-- 消息通知标记 --}}


                        @endguest


                    </ul>
                </div>
            </div>
        </div>
